﻿@{	
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        //initControl();
        if (!!keyValue) {
            $.ajax({
                url: "/Questionnaire/QnQuestion/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function initControl() {
        $("#F_OrganizeId").bindSelect({
            url: "/SystemManage/Organize/GetTreeSelectJson",
        });
    }
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/Questionnaire/QnQuestion/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function() {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        });
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">编号</th>
                <td class="formValue">
                    <input id="F_Id" name="F_Id" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">试卷编号</th>
                <td class="formValue">
                    <input id="F_PaperId" name="F_PaperId" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">试卷标题</th>
                <td class="formValue">
                    <input id="F_PaperTitle" name="F_PaperTitle" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">题型</th>
                <td class="formValue">
                    <select id="F_Type" name="F_Type" class="form-control required">
                        <option value="1">单选</option>
                        <option value="2">多选</option>
                        <option value="3">评分</option>
                        <option value="4">问题</option>
                    </select>
                </td>
            </tr>
            <tr>
                <th class="formTitle">问题</th>
                <td class="formValue">
                    <input id="F_Question" name="F_Question" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">排序</th>
                <td class="formValue">
                    <input id="F_OrderId" name="F_OrderId" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项数</th>
                <td class="formValue">
                    <input id="F_OptionCont" name="F_OptionCont" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项1</th>
                <td class="formValue">
                    <input id="F_Option1" name="F_Option1" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项2</th>
                <td class="formValue">
                    <input id="F_Option2" name="F_Option2" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项3</th>
                <td class="formValue">
                    <input id="F_Option3" name="F_Option3" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项4</th>
                <td class="formValue">
                    <input id="F_Option4" name="F_Option4" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项5</th>
                <td class="formValue">
                    <input id="F_Option5" name="F_Option5" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项6</th>
                <td class="formValue">
                    <input id="F_Option6" name="F_Option6" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项7</th>
                <td class="formValue">
                    <input id="F_Option7" name="F_Option7" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项8</th>
                <td class="formValue">
                    <input id="F_Option8" name="F_Option8" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项9</th>
                <td class="formValue">
                    <input id="F_Option9" name="F_Option9" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">选项10</th>
                <td class="formValue">
                    <input id="F_Option10" name="F_Option10" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">创建者</th>
                <td class="formValue">
                    <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">创建时间</th>
                <td class="formValue">
                    <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">修改者</th>
                <td class="formValue">
                    <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">修改时间</th>
                <td class="formValue">
                    <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control required" placeholder="" />
                </td>
            </tr>
        </table>
    </div>
</form>